<?php


namespace App\Controller;

use App\Annotation\Foo;
use Hyperf\Di\Annotation\AnnotationCollector;
use Hyperf\Di\Annotation\AnnotationInterface;
use Hyperf\HttpServer\Annotation\AutoController;

/**
 * Class HomeController
 * @package App\Controller
 * @AutoController()
 * @Foo(bar="1234")
 */
class HomeController
{

    public function index(){
        var_dump(AnnotationCollector::getClassesByAnnotation(Foo::class));
        return 43;
    }
}